﻿using AMAP.Domain;
using AMAP.ServiceClasses.Common;
using AMAP.ServiceInterfaces;
using AMAP.ServiceInterfaces.Common;
using System.Collections.Generic;
using System.Linq;

namespace AMAP.ServiceClasses
{
    public class CompositionService : BaseRepositoryService<Composition>, ICompositionService
    {
        public CompositionService(IDatabaseFactory databaseFactory)
            : base(databaseFactory)
        {
        }
        public IList<Composition> GetListByBasketId(int BasketId)
        {
            return this.dataContext.CompositionSet.Where(c => c.BasketId == BasketId).ToList<Composition>();
        }
    }
}
